package com.jgy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 * @TableName space_user
 */
@TableName(value ="space_user")
@Data
public class SpaceUser implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private String id;

    public SpaceUser() {
    }

    public SpaceUser(String id, String username, String password, String salt, String wxUnionid, String nickname, String name, String userpic, String companyId, String utype, Date birthday, String sex, String email, String cellphone, String qq, String status, Date createTime, Date updateTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.wxUnionid = wxUnionid;
        this.nickname = nickname;
        this.name = name;
        this.userpic = userpic;
        this.companyId = companyId;
        this.utype = utype;
        this.birthday = birthday;
        this.sex = sex;
        this.email = email;
        this.cellphone = cellphone;
        this.qq = qq;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     *
     */
    @TableField(value = "username")
    private String username;

    /**
     *
     */
    @TableField(value = "password")
    private String password;

    /**
     *
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 微信unionid
     */
    @TableField(value = "wx_unionid")
    private String wxUnionid;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     *
     */
    @TableField(value = "name")
    private String name;

    /**
     * 头像
     */
    @TableField(value = "userpic")
    private String userpic;

    /**
     *
     */
    @TableField(value = "company_id")
    private String companyId;

    /**
     *
     */
    @TableField(value = "utype")
    private String utype;

    /**
     *
     */
    @TableField(value = "birthday")
    private Date birthday;

    /**
     *
     */
    @TableField(value = "sex")
    private String sex;

    /**
     *
     */
    @TableField(value = "email")
    private String email;

    /**
     *
     */
    @TableField(value = "cellphone")
    private String cellphone;

    /**
     *
     */
    @TableField(value = "qq")
    private String qq;

    /**
     * 用户状态
     */
    @TableField(value = "status")
    private String status;

    /**
     *
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    private Date updateTime;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}